//
//  XFSystem.m
//  WorkManager
//
//  Created by ukongm on 17/2/12.
//  Copyright © 2017年 ukongm. All rights reserved.
//
#import "XFSystem.h"

@implementation XFSystem

+ (void)callPhone:(NSString *)phoneStr{
    NSMutableString* str=[[NSMutableString alloc] initWithFormat:@"telprompt://%@",phoneStr];
    
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
}

+ (void)sendMailForPhone:(NSString *)phoneStr target:(UIViewController<MFMessageComposeViewControllerDelegate>*)target{
    MFMessageComposeViewController * controller = [[MFMessageComposeViewController alloc] init];
    controller.recipients = @[phoneStr];
    controller.messageComposeDelegate = target;
    [target presentViewController:controller animated:YES completion:nil];
}

@end
